package com.bi.vo;

import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * 导入任务状态
 * 
 * @author BI Platform Team
 * @since 1.0.0
 */
@Data
public class ImportTaskStatus {
    private String taskId;
    private TaskStatus status;
    private int progress;
    private long totalRows;
    private long processedRows;
    private long successRows;
    private long errorRows;
    private String errorMessage;
    private String startTime;
    private String endTime;
    private List<String> errorDetails;

    /**
     * 任务状态枚举
     */
    public enum TaskStatus {
        PENDING("等待中"),
        RUNNING("进行中"),
        COMPLETED("已完成"),
        FAILED("失败"),
        CANCELLED("已取消");

        private final String description;

        TaskStatus(String description) {
            this.description = description;
        }

        public String getDescription() {
            return description;
        }
    }
}